package cn.tedu.work.di;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestOrders {

    @Test
    public void ordersTest(){
        ApplicationContext context = new ClassPathXmlApplicationContext("bean-orders.xml");
        Orders order1 = context.getBean("order2", Orders.class);
        System.out.println("order1 = " + order1);
    }
}









